package com.starlinkdt.common.constant;

import java.math.BigDecimal;

/**
 * @Author cuixuan
 * @Description 抵扣系统常量设置
 * @Date 2025/6/18 10:28
 */
public interface DeductionConstants {

    /**
     * 抵扣上限Rate比率
     */
    BigDecimal DEDUCTION_RATE = BigDecimal.valueOf(0.3);

    /**
     * 非累计抵扣TYPE
     */
    String NOT_CUMULATIVE_TYPE = "0";

    /**
     * 累计抵扣TYPE
     */
    String CUMULATIVE_TYPE = "1";

    /**
     * 金额精度
     */
    Integer PRICE_SCALE = 2;

    /**
     * 判定距离上限
     */
    Double INSTANCE_UPPER_LIMIT = 1000d;

    /**
     * 抵扣状态 - 预抵扣
     */
    String DECLARATION_STATUS_INIT = "0";

    /**
     * 抵扣状态 - 抵扣申请中
     */
    String DECLARATION_STATUS_REQ = "1";

    /**
     * 抵扣状态 - 抵扣成功
     */
    String DECLARATION_STATUS_OK = "2";

    String DEFAULT_URL = "http://default.com/";

}
